#ifndef __VIROBJ_H_
#define __VIROBJ_H_

//玩家有怪物也有

#include "Point.h"
class ScenObj
{   
public:
    DEFINE_MEMBER(point, Point)
       //移动
    void up() { if (point.Gety()>= 1) point.Sety(point.Gety()-1); };
    void down() { point.Sety(point.Gety()+1);};
    void left() { if (point.Getx() >= 1) point.Setx(point.Getx()-1); };
    void right() { point.Setx(point.Getx()+1);};
    //帖图
    DEFINE_MEMBER(Symbol, std::string)
    Point *getPoint(){
        return &point;
    }
};


class VirObj : public ScenObj //x y 全部有 不用重写
{
    DEFINE_MEMBER(Name, std::string)
    // DEFINE_MEMBER(Symbol, std::string); //帖图
    DEFINE_MEMBER(HP, int)
    DEFINE_MEMBER(Attack, int)//怪
    DEFINE_MEMBER(Defind, int)//NPC
    DEFINE_MEMBER(Exp, int)
    DEFINE_MEMBER(Gloden, int)
    DEFINE_MEMBER(critChance,float)
    DEFINE_MEMBER(dodgeChance,float)
};


#endif